// 1. 导入express模块
const express =  require('express')
// 2. 创建express服务对象
const app = express();

// 导入路由器
const pageRouter = require('./routers/pageRouter');
const userPageRouter = require('./routers/userpageRouter');


app.use(express.static('./abc'))
// 将路由器对象应用到app上
app.use(pageRouter)
app.use(userPageRouter)
app.listen(80,()=>{
    console.log("启动成功");
})